﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;
namespace Dao
{
   public class sqlcontent
    {
        public static DataTable dt(String sql,SqlParameter[] para) {

            if (concmd.table(sql, para) != null)
            {
                return concmd.table(sql, para);
            }
            else {
                return null;
            }
        }
        public static DataTable dt(String sql)
        {

            if (concmd.table(sql, null) != null)
            {
                return concmd.table(sql, null);
            }
            else
            {
                return null;
            }
        }
        public static int content(string sql) {
            return concmd.content(sql, null);
            
        }
        public static int content(string sql, SqlParameter[] para)
        {
            return concmd.content(sql, para);

        }
    }
}
